Ext.define("AmpleHarvest.DATA.Model.cSiteMetrics", 
{
    extend: 'Ext.data.Model',
    fields: 
    [
     	{
     		name: '@type',
     		type: 'string'
     	},
        {
    		name: 'harvestDate',  
    		type: 'string'
    	},
        {
    		name: 'lastPostDate',  
    		type: 'string'
    	},
    	{
    		name: 'postDate',
    		type: 'string'
    	},
    	{
    		name: 'postNumber',
    		type: 'string'
    	},
    	{
    		name: 'author',
    		convert: function(value, record) {
    			return(value.name);
    		}
    	},
    	{
    		name: 'content',
    		type: 'string'
    	},
        {
    		name: 'postCount',  
    		type: 'string'
    	},
        {
    		name: 'siteId',  
    		type: 'string'
    	},
        {
    		name: 'title',  
    		type: 'string'
    	},
        {
    		name: 'viewCount',  
    		type: 'string'
    	},
    	{
    		name: 'link-tree',
    		type: 'auto'
    	},
    	{
    		name: 'self',
    		type: 'auto'
    	},
    	{
    		name: 'forums',
    		type: 'auto'
    	},
    	{
    		name: 'reports',
    		type: 'auto'
    	},
    	{
    		name: 'reportId',
    		type: 'string'
    	},
    	{
    		name: 'snapshotPages',
    		type: 'auto'
    	},
    	{
    		name: 'postAvgRateOfChange',
    		type: 'float'
    	},
    	{
    		name: 'postMaxRateOfChange',
    		type: 'float'
    	},
    	{
    		name: 'postMostRecentDelta',
    		type: 'float'
    	},
    	{
    		name: 'postStandardDeviation',
    		type: 'float'
    	},
    	{
    		name: 'viewAvgRateOfChange',
    		type: 'float'
    	},
    	{
    		name: 'viewMaxRateOfChange',
    		type: 'float'
    	},
    	{
    		name: 'viewStandardDeviation',
    		type: 'float'
    	}
     ]
});